﻿namespace AnyLink.Domain.ViewModels
{
    public class ResultJsonView 
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 类型success、warning、error
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        public string Message { get; set; }
    }

    public class ResultJsonView<T> : ResultJsonView
    {
        /// <summary>
        /// 数据
        /// </summary>
        public T Data { get; set; }
    }
}
